home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
jobs.z
/
jobs
Wrap
Text File
|
1998-10-30
|
9KB
|
199 lines
jjjjoooobbbbssss((((1111)))) jjjjoooobbbbssss((((1111))))
NNNNAAAAMMMMEEEE
jjjjoooobbbbssss - display status of jobs in the current session
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
jjjjoooobbbbssss [ ----llll | ----pppp][jjjjoooobbbb____iiiidddd...]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The jjjjoooobbbbssss utility displays the status of jobs that were started in the
current shell environment; see Shell Execution Environment.
When jjjjoooobbbbssss reports the termination status of a job, the shell removes its
process ID from the list of those "known in the current shell execution
environment".
OOOOPPPPTTTTIIIIOOOONNNNSSSS
The jjjjoooobbbbssss utility supports the XBD specification, Utility Syntax
Guidelines.
The following options are supported:
----llll (The letter ell.) Provide more information about each job listed.
This information includes the job number, current job, process group
ID, state and the command that formed the job.
----pppp Display only the process IDs for the process group leaders of the
selected jobs.
By default, the jjjjoooobbbbssss utility displays the status of all stopped jobs,
running background jobs and all jobs whose status has changed and have
not been reported by the shell.
OOOOPPPPEEEERRRRAAAANNNNDDDDSSSS
The following operand is supported:
jjjjoooobbbb____iiiidddd Specifies the jobs for which the status is to be displayed. If
no jjjjoooobbbb____iiiidddd is given, the status information for all jobs will be
displayed. The format of jjjjoooobbbb____iiiidddd is described in the entry for
job control job ID in the sssshhhh((((1111)))) manpage.
SSSSTTTTDDDDOOOOUUUUTTTT
If the ----pppp option is specified, the output consists of one line for each
process ID:
"%d\n", <process ID>
Otherwise, if the ----llll option is not specified, the output is a series of
lines of the form:
"[%d] %c %s %s\n", <job-number>, <current>, <state>, <command>
PPPPaaaaggggeeee 1111
jjjjoooobbbbssss((((1111)))) jjjjoooobbbbssss((((1111))))
where the fields are as follows:
<current> The character "++++" identifies the job that would be used as
a default for the ffffgggg or bbbbgggg utilities; this job can also be
specified using the job_id %%%%++++ or %%%%%%%%. The character "----"
identifies the job that would become the default if the
current default job were to exit; this job can also be
specified using the job_id %%%%----. For other jobs, this field
is a space character. At most one job can be identified
with "++++" and at most one job can be identified with "----".
If there is any suspended job, then the current job will
be a suspended job. If there are at least two suspended
jobs, then the previous job will also be a suspended job.
<job-number> A number that can be used to identify the process group to
the wait, ffffgggg, bbbbgggg and kkkkiiiillllllll utilities. Using these
utilities, the job can be identified by prefixing the job
number with "%%%%".
<state> One of the following strings (in the POSIX locale):
RRRRuuuunnnnnnnniiiinnnngggg Indicates that the job has not been
suspended by a signal and has not
exited.
DDDDoooonnnneeee Indicates that the job completed and
returned exit status zero.
DDDDoooonnnneeee((((ccccooooddddeeee)))) Indicates that the job completed
normally and that it exited with the
specified non-zero exit status, code,
expressed as a decimal number.
SSSSttttooooppppppppeeeedddd
SSSSttttooooppppppppeeeedddd ((((SSSSIIIIGGGGTTTTSSSSTTTTPPPP)))) Indicates that the job was suspended by
the SSSSIIIIGGGGTTTTSSSSTTTTPPPP signal.
SSSSttttooooppppppppeeeedddd ((((SSSSIIIIGGGGSSSSTTTTOOOOPPPP)))) Indicates that the job was suspended by
the SSSSIIIIGGGGSSSSTTTTOOOOPPPP signal.
SSSSttttooooppppppppeeeedddd ((((SSSSIIIIGGGGTTTTTTTTIIIINNNN)))) Indicates that the job was suspended by
the SSSSIIIIGGGGTTTTTTTTIIIINNNN signal.
SSSSttttooooppppppppeeeedddd ((((SSSSIIIIGGGGTTTTTTTTOOOOUUUU)))) Indicates that the job was suspended by
the SSSSIIIIGGGGTTTTTTTTOOOOUUUU signal.
The implementation may substitute the
string SSSSuuuussssppppeeeennnnddddeeeedddd in place of SSSSttttooooppppppppeeeedddd.
If the job was terminated by a signal,
the format of <state> is unspecified,
but it will be visibly distinct from
PPPPaaaaggggeeee 2222
jjjjoooobbbbssss((((1111)))) jjjjoooobbbbssss((((1111))))
all of the other <state> formats shown
here and will indicate the name or
description of the signal causing the
termination.
<command> The associated command that was given to the shell.
If the ----llll option is specified, a field containing the process group ID is
inserted before the <state> field. Also, more processes in a process
group may be output on separate lines, using only the process ID and
<ccccoooommmmmmmmaaaannnndddd> fields.
EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
AAAAPPPPPPPPLLLLIIIICCCCAAAATTTTIIIIOOOONNNN UUUUSSSSAAAAGGGGEEEE
The ----pppp option is the only portable way to find out the process group of a
job because different implementations have different strategies for
defining the process group of the job. Usage such as $$$$((((jjjjoooobbbbssss ----pppp)))) provides
a way of referring to the process group of the job in an implementation-
independent way.
The jjjjoooobbbbssss utility will not work as expected when it is operating in its
own utility execution environment because that environment will have no
applicable jobs to manipulate. See the APPLICATION USAGE section for bbbbgggg.
For this reason, jobs is generally implemented as a shell regular built-
in.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
bbbbgggg((((1111)))),,,, ffffgggg((((1111)))),,,, kkkkiiiillllllll((((1111)))),,,, sssshhhh((((1111)))),,,, wwwwaaaaiiiitttt((((1111))))....
PPPPaaaaggggeeee 3333